﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <!--<script src="../js/jquery/2/jquery-2.1.1.js"></script>-->
    <script src="js/jquery/jquery-1.8.1.js"></script>
    <!--<script src="../js/jquery/jquery-1.8.1.min.js"></script>-->
    <script src="js/other/JSON.js"></script>

    <script src="js/bingo/console.js"></script>
    <script src="js/bingo/core.js"></script>
    <script src="js/bingo/datavalue.js"></script>
    <script src="js/bingo/Event.js"></script>
    <script src="js/bingo/variable.js"></script>
    <script src="js/bingo/Class.js"></script>
    <script src="js/bingo/linq.js"></script>
    <script src="js/bingo/equals.js"></script>
    <script src="js/bingo/fetch.js"></script>
    <script src="js/bingo/package.js"></script>
    <script src="js/bingo/route.js"></script>
    <script src="js/bingo/cache.js"></script>

    <script src="js/bingo/mv/linkToDom.js"></script>
    <script src="js/bingo/mv/module.js"></script>
    <script src="js/bingo/mv/factory.js"></script>
    <script src="js/bingo/mv/model.js"></script>
    <script src="js/bingo/mv/observer.js"></script>
    <script src="js/bingo/mv/ajax.js"></script>
    <script src="js/bingo/mv/compiles.js"></script>
    <script src="js/bingo/mv/view.js"></script>
    <script src="js/bingo/mv/filter.js"></script>
    <script src="js/bingo/mv/render.js"></script>

    <script src="js/bingo/mv/cmp/base.js"></script>

    <script src="js/bingo/mv/factory/base.js"></script>
    <script src="js/bingo/mv/factory/linq.js"></script>
    <script src="js/bingo/mv/factory/location.js"></script>
    <script src="js/bingo/mv/factory/render.js"></script>
    <script src="js/bingo/mv/factory/timeout.js"></script>

    <script src="js/bingo/mv/command/action.js"></script>
    <script src="js/bingo/mv/command/attrs.js"></script>
    <script src="js/bingo/mv/command/event.js"></script>
    <script src="js/bingo/mv/command/for.js"></script>
    <script src="js/bingo/mv/command/route.js"></script>
    <script src="js/bingo/mv/command/html.js"></script>
    <script src="js/bingo/mv/command/if.js"></script>
    <script src="js/bingo/mv/command/include.js"></script>
    <script src="js/bingo/mv/command/model.js"></script>
    <script src="js/bingo/mv/command/styles.js"></script>
    <script src="js/bingo/mv/command/text.js"></script>
    <script src="js/bingo/mv/command/node.js"></script>

    <script src="js/bingo/mv/filter/base.js"></script>
    
    <script src="test/lib.js"></script>
    <script src="test/route.js"></script>
    <script type="text/javascript">
        bingo.location.onLoadBefore(function(url, loc){console.log(url, loc);});
        bingo.location.onLoaded(function(loc){console.log(loc);});

    </script>
    <script type="text/javascript">

        var obj1 = {};
        Object.defineProperties(obj1, {
            "property1": {
                //__proto__: null, // 没有继承的属性
                //是否可以删除， 默认为false
                configurable: false,
                //是否可以遍历， 默认为false
                enumerable: false,
                //值, 默认为 undefined
                value: true,
                //是否可以写, 不能与get,set共存, 默认为 false
                //如果为false, 可以赋值， 但不会成功
                writable: true
            },
            "property2": {
                //是否可以删除， 默认为false
                configurable: false,
                //是否可以遍历， 默认为false
                enumerable: true,
                //是否可以写, 默认为 false
                //writable: true,
                get: function () {
                    console.log('get!', this.__bg_propery_.property2, this);
                    return this.__bg_propery_.property2;
                },
                set: function (value) {
                    this.__bg_propery_.property2 = value;
                    console.log('set!', this.__bg_propery_.property2);
                }
            },
            "__bg_propery_": {
                //__proto__: null, // 没有继承的属性
                //是否可以删除， 默认为false
                configurable: false,
                //是否可以遍历， 默认为false
                enumerable: false,
                //值, 默认为 undefined
                value: {},
                //是否可以写, 不能与get,set共存, 默认为 false
                //如果为false, 可以赋值， 但不会成功
                writable: false
            }
        });
        //注意：某些浏览器有问题
        // 1.不要依赖重新定义数组的length属性。
        // IE8 只能在Dom对象使用defineProperties / definePropertie
    </script>
</head>
<body>

    <!--常用指令测试========================================-->
    <div bg-route="view/test/normal"></div>

    <!--renderSync指令测试========================================-->
    <!--<div bg-route="view/command/renderSync" bg-name="renderSync"></div>-->

    <!-- <div bg-route="viewP/path/aaa"></div> -->

</body>
</html>
